/**
 * Author: w景洋.
 * Time: 2016/7/6 0006
 */
angular.module('service.shop', [
    "ngResource"
])

//获取商店列表
.service('testService',['$resource',function($resource) {

    //通过经纬度返回地址信息
    this.getLocation = function(lng,lat){
        var abcurl = $resource("http://restapi.amap.com/v3/geocode/regeo?location="+lng+","+lat+"&extensions=base&output=json&key=e13d1720686121d73f704b4b42b3a6af");
        return abcurl.get();
    }
}])
;